package com.xhs.open.bean;

import com.xhs.open.util.json.XhsOpenGsonBuilder;
import lombok.Data;

import java.io.Serializable;

@Data
public class XhsOpenAuthorizerAccessToken implements Serializable {
  private static final long serialVersionUID = -4069745419280727420L;

  private String authorizerAccessToken;

  private String authorizerRefreshToken;

  private int expiresIn = -1;

  public static XhsOpenAuthorizerAccessToken fromJson(String json) {
    return XhsOpenGsonBuilder.create().fromJson(json, XhsOpenAuthorizerAccessToken.class);
  }
}
